package com.guyu.common.web.config.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * Redisson 配置属性
 *
 * @author Lion Li
 */
@Data
@AutoConfiguration
@ConfigurationProperties(prefix = "guyu.web")
public class GyWebProperties {

    private Request requestLog = new Request();


    @Data
    public static class Request {
        /**
         * 是否开启请求日志
         */
        private Boolean enabled = true;
        /**
         * 需要排除的url
         */
        private List<String> excludeUrl = new ArrayList<>();
    }


}
